package com.imti.mall.sale.service;

import com.imti.mall.model.sms.pojo.SmsFlashPromotion;
import com.imti.mall.sale.mapper.SmsFlashPromotionDynaSqlProvider;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

/**
 * ClassName: SmsFlashPromotionService
 * Description:
 * date: 2022/9/20 0:04
 *
 * @author: youhun
 * @version:
 * @since JDK 1.8
 */
public interface SmsFlashPromotionService {

    /**
     * 查询限时购表
     * @param smsFlashPromotion
     * @return
     */
    public List<SmsFlashPromotion> findSmsFlashPromotion(SmsFlashPromotion smsFlashPromotion,Integer pageSize,Integer pageNum);
    /**
     * 查询限时购表总条数
     * @param smsFlashPromotion
     * @return
     */
    public Integer countSmsFlashPromotion(SmsFlashPromotion smsFlashPromotion);

    /**
     * 根据id修改限时购
     * @param smsFlashPromotion
     * @return
     */
    public Integer updateSmsFlashPromotion(SmsFlashPromotion smsFlashPromotion);

    /**
     * 添加限时购表
     * @param smsFlashPromotion
     * @return
     */
    public boolean addSmsFlashPromotion(SmsFlashPromotion smsFlashPromotion);

    /**
     * 修改限时购表
     * @param smsFlashPromotion
     * @return
     */
    public boolean deleteSmsFlashPromotion(SmsFlashPromotion smsFlashPromotion);


}
